home *** CD-ROM | disk | FTP | other *** search
/ Freaks Macintosh Archive / Freaks Macintosh Archive.bin / Freaks Macintosh Archives / Textfiles / cracking / BeginnersMacAssembly.sit.hqx / BeginnersMacAssembly.rsrc / PICT_55.png < prev    next >
Portable Network Graphic  |  1997-07-26  |  128KB  |  816x1056  |  8-bit (256 colors)
Labels: book | earth | reckoner | sidewalk | sky | windowpane
OCR: SatshovtelikBtutt; Beginners Guide To Macintosh Assembly Language Programming 55age short crOnly; shor Style txFace /*txFace unpacked byte*/ char filler; short txMode short txSize; GrafPtr inPort; ProcPtr highHook; ProcPtr caretI Hook; short nL ines short lineStarts[] 16001] Isn t it lovely? This is a C definition of the text editor record. How op we read this? Well in C char means a byte short is a word, ptr is a long The Mac also defines other types as follows: Rect four words defining start and end of rectangle (top left bottom right). Point long with coordinate in upper and coordinate in lower pIOM Handle is a long Armed with this information, We can calculate the offset to any entry in the record In this case we want the cursor coordinates which we can get from selrect' in the record, ...